﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;

namespace eCashDatalayer
{
    public class CabinetAuthoritiesModel : INotifyPropertyChanged
    {

        public event PropertyChangedEventHandler PropertyChanged;


        private int _IncomingCabinetID; 
        private int _MinistryID;
        private string _Referencenumber;
        private string _Title; 
        private string _Destination;
        private string _Referedto;
        private DateTime _Daterecorded;
        private DateTime _Dateentered; 
        private string _Enteredby;
    
        /// When the Property is changed from the PL this gets Fired
        /// </summary>
        /// <param name="property"></param>
        private void OnPropertyChanged(String property)
        {


            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }


        public int IncomingCabinetID
        {

            get
            {
                return _IncomingCabinetID;
            }
            set
            {
                _IncomingCabinetID = value;

                OnPropertyChanged("IncomingCabinetID");

            }
        }


        public int MinistryID
        {

            get
            {
                return _MinistryID;
            }
            set
            {
                _MinistryID = value;

                OnPropertyChanged("MinistryID");

            }
        }
        public string Referencenumber
        {

            get
            {
                return _Referencenumber;
            }
            set
            {
                _Referencenumber = value;

                OnPropertyChanged("Referencenumber");

            }
        }

        public string Title
        {

            get
            {
                return _Title;
            }

            set
            {
                _Title = value;

                OnPropertyChanged("Title");
            }
        }


        public string Destination
        {

            get
            {
                return _Destination;
            }

            set
            {
                _Destination = value;

                OnPropertyChanged("Destination");
            }
        } 

        public string Referedto
        {

            get
            {
                return _Referedto;
            }

            set
            {
                _Referedto = value;

                OnPropertyChanged("Referedto");
            }
        }

        public DateTime Daterecorded
        {

            get
            {
                return _Daterecorded;
            }

            set
            {
                _Daterecorded = value;

                OnPropertyChanged("Daterecorded");
            }
        }


        public DateTime Dateentered
        {

            get
            {
                return _Dateentered;
            }

            set
            {
                _Dateentered = value;

                OnPropertyChanged("Dateentered");
            }
        }

        public string Enteredby
        {

            get
            {
                return _Enteredby;
            }

            set
            {
                _Enteredby = value;

                OnPropertyChanged("Enteredby");
            }
        }
         
    }
}